<div id="content">
	<div class="row s_page_title">
		<sa-big-breadcrumbs [items]="['数据统计','淸运点统计']" icon="fa fa-area-chart" class="col-xs-12 col-sm-7 col-md-7 col-lg-4"></sa-big-breadcrumbs>
	</div>
<sa-widgets-grid>
		<div class="s_table">
			<div sa-widget [editbutton]="false" color="darken" class="clearfix">
				<header><span class="widget-icon"> <i class="fa fa-table"></i> </span><h2>淸运点统计</h2></header>
				<div>
					<div class="widget-body no-padding">
						<div class="page-header clearfix s_table_opreation">
							<div class="left page-header-btn">
								<div class="top_module">
									<span class="module_text">公司名称</span>
									<div class="company_tree" style="display: inline-block;vertical-align: middle;">
										<div class="clearfix" style="position: relative;">
											<div class="s_hover_box s_fix_radius">
												<input class="form-control tree_company_input"  
													id="company" name="selectedCompanyName" 
													(input)="companySearch()" autocomplete="off" 
													[(ngModel)]='selectedCompanyName' (click)="companyClick()" 
													type="text" placeholder="请选择" onfocus="this.blur()" />
												<div class="s_del_icon" (click)='delText()'>x</div>
											</div>
											<div class="s_tree_box" id="tree_box">
												<div class="treeSearchInputBox" style="padding: 12px;">
													<input type="text" class="treeSearchInput" id="treeSearchInput" (input)="companySearch()" style="width: 100%;height:30px;border:1px solid #dedede;padding: 0 12px;box-sizing: border-box;font-size: 12px;" placeholder="关键字"/>
												</div>
												<div class="vision_tree" id="vision_tree" style="height: calc(100% - 56px);">
													<div id="tree"></div>
												</div>
											</div>
										</div>
							     	</div>
								</div>
								<div class="top_module">
									<span class="module_text">车牌号</span>
									<div class="s_hover_box">
										<select   class="select2"  id="carNumberSelect2">
											<option value=''></option>
											<!--<option *ngFor="let item of carList" [value]='item.id'>{{item.text}}</option>-->
										</select>
										<div class="s_del_icon" (click)='del_carNumber()'>x</div>
									</div>
								</div>
								<div class="top_module">
									<span class="module_text">淸运点</span>
									<div class="s_hover_box">
										<select   class="select2"  id="deliverySelect2">
											<option value=''></option>
											<!--<option *ngFor="let item of deliveryList" [value]='item.value'>{{item.label}}</option>-->
										</select>
										<div class="s_del_icon" (click)='del_delivery()'>x</div>
									</div>
								</div>
								<div class="selectDate top_module">
									<div class="input-daterange input-group s_selected_time_box s_hover_box">
										<input type="text" [(ngModel)]='startTime' class="form-control s_selected_time" id="datetimepicker1"  autocomplete="off" placeholder="选择开始时间"/>
										<span class="s_selected_time_spe">至</span>
										<input type="text" [(ngModel)]='endTime' class="form-control s_selected_time" id="datetimepicker2"  autocomplete="off" placeholder="选择结束时间"/>
										<div class="s_del_icon" (click)='del_date()'>x</div>
									</div>
								</div>
								<button type="button" class="btn btn-primary" (click)="table_search()">查询</button>
								<button type="button" class="btn btn-primary" (click)="export_totle()">汇总报表</button>
								<button type="button" class="btn btn-primary" (click)="export_datail()">明细报表</button>
							</div>
							<div class="right top-search">
								<input type="text" [(ngModel)]="searchKey" (change)="table_search()" class="search-input" placeholder="车牌号码、淸运点...">
								<span class="top-search-box">
							        <button class="top-search-btn" type="button" (click)="table_search()"> <i class="fa fa-search"></i></button>
							    </span>
							</div>
						</div>
						<div class="table_scroll">
							<table class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table">
								<thead>
									<tr>
										<th>编号</th>
										<th>淸运点</th>
										<th>车牌号码</th>
										<th>清运时间</th>
										<th>清运重量</th>
									</tr>
								</thead>
								<tbody>
									<tr *ngFor="let row of resultTableData" >
										<td>{{row.index}}</td>
										<td>{{row.stationName}}</td>
										<td>{{row.carNumber}}</td>
										<td>{{row.uploadDate}}</td>
										<td>{{row.weight}}</td>
									</tr>
								</tbody>
							</table>
						</div>
						<div class="table-fix clearfix">
							<paginator [totalRecords]="totalCount"
						           [rows]="pageSize"
						           [currentPage]="curPage - 1"
						           (onPageChange)="paginate($event)">
							</paginator>
							<button type="button" class="btn default refresh_btn" (click)="refresh()"><i class="fa fa-refresh"></i></button>
						</div>
					</div>
				</div>
			</div>
		</div>
	</sa-widgets-grid>
</div>
